import hasRole from './auth/hasRole'
import hasPermi from './auth/hasPermi'
import hasPerm from './auth/hasPerm'
import isAdmin from './auth/isAdmin'
import hasModule from './auth/hasModule'
import notAdmin from './auth/notAdmin'
export default function directive(app){
  app.directive('hasRole', hasRole)
  app.directive('hasPermi', hasPermi)
  // 别名
  app.directive('hasPerm',hasPerm)
  app.directive('isAdmin',isAdmin)
  app.directive('hasModule',hasModule)
  app.directive('notAdmin',notAdmin)
}